package edu.spsu;

import edu.spsu.utils.Util;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class SPSUActivity extends Activity {
	private static String TAG = SPSUActivity.class.getName();
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
    
	public void taskBarClick(View v) {
		if(v.getId() != R.id.goHomeButton)
			Util.taskBarClick(v);
	}
	
	public static void startWeather(View v) {
		Intent intent = new Intent(v.getContext(), edu.spsu.weather.WeatherListingActivity.class);
		v.getContext().startActivity(intent);
	}
	
	public static void startEvents(View v) {
		Intent intent = new Intent(v.getContext(), edu.spsu.events.EventListingActivity.class);
		v.getContext().startActivity(intent);
	}
	
	public static void startCourseListing(View v) {
		Intent intent = new Intent(v.getContext(), edu.spsu.courses.CourseListingActivity.class);
		v.getContext().startActivity(intent);
	}
}